﻿package common;

import java.io.Serializable;

import org.hibernate.engine.SessionImplementor;
import org.hibernate.id.IdentifierGenerator;



public class HibernateLongIDGenerator implements IdentifierGenerator {
	private static LongIDGeneratorFactory longIdGenerator = new LongIDGeneratorFactory();
	
	public Serializable generate(SessionImplementor session, Object object){
		Long id = longIdGenerator.generateID();
		return id;
	}

}
